<template>
  <view class="chartsview">
    <view class="charts-error" />
    <view class="charts-font">{{ errorMessage == null ? '请点击重试' : errorMessage }}</view>
  </view>
</template>

<script>
export default {
  name: 'qiun-error',
  props: {
    errorMessage: {
      type: String,
      default: null
    }
  },
  data() {
    return {}
  }
}
</script>

<style>
.chartsview {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.charts-font {
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
}

.charts-error {
  width: 128px;
  height: 128px;
  background: url('');
  background-position: center;
}
</style>
